
import java.io.*;
import java.util.*;

public class FileRead
{
	
    private ArrayList<String> lines;
	
    public FileRead(String str)
    {
		
        try
        {
            FileInputStream fstream = new FileInputStream(str);
			
            DataInputStream in = new DataInputStream(fstream);
            BufferedReader br = new BufferedReader(new InputStreamReader(in));
			
            String strLine;
            lines= new ArrayList<String>();
			
            while ((strLine = br.readLine()) != null)
            {
                lines.add(strLine);
            }
			
            in.close();
        }
        catch (Exception e)
        {
            e.printStackTrace();
        }
    }
	
    public ArrayList<String> getLines()
    {
        return lines;
    }
}
